#Makefile for uitl/*

CC = gcc

LINKS = method.o command.o queue.o

#DEFINE = -g -DDEBUG
DEFINE =

LIBTARGET= ../lib

%.o: %.c
	$(CC) -Wall -O2 ${DEFINE} -I../include -c -o $@ $<

all: $(LINKS) # libqueuesem.so libqueuesem.a

libqueuesem.a:
	ar -rus ${LIBTARGET}/$@ libsemsyv.o

libqueuesem.so:	
	$(CC) -shared -o ${LIBTARGET}/$@ libsemsyv.o

clean:
	rm -f *.o *.a *.so
